/*
 * @Autor: Ruohong Yu
 * @Date: 2022-08-31 22:22:04
 * @Description: file content
 * @FilePath: \ebook\src\main.js
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { setupI18n } from './lang/index'
import './assets/styles/icon.css'
import './utils/boost'
import VueSocketIO from 'vue-3-socket.io'
import io from 'socket.io-client'
// import './mock'
const socketio = new VueSocketIO({
  debug: true,
  connection: io('http://127.0.0.1:5000', { transports: ['websocket'] }),
  // http:自己的服务：端口
  extraHeaders: { 'Access-Control-Allow-Origin': '*' }
})
const app = createApp(App)
app.use(socketio)
app.use(store).use(router).mount('#app')
setupI18n(app)
